-
Notifications
You must be signed in to change notification settings - Fork 4
Deduplication flutter #55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## 4.1.2-beta #55 +/- ##
==============================================
- Coverage 76.57% 75.30% -1.28%
==============================================
Files 66 67 +1
Lines 2801 2867 +66
==============================================
+ Hits 2145 2159 +14
- Misses 656 708 +52
... and 15 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
🚀 New features to boost your workflow:
|
| class FSData extends ChangeNotifier { | ||
| // Apikey | ||
| String _apiKey = "apiKey"; // | ||
| String _apiKey = "DxAcxlnRB9yFBZYtLDue1q01dcXZCw6aM49CQB23"; // |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove the key
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
manage lookup visitor
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR implements flag activation deduplication to prevent redundant activation hits for the same campaign/variation during a visitor session, and includes various improvements to caching, authentication handling, and dependency updates.
- Adds session-based tracking (30 min) to deduplicate flag activations for the same campaign/variation group
- Implements selective visitor cache lookup logic to check anonymousId when visitorId doesn't exist
- Removes mode restrictions for authenticate/unauthenticate methods to work in both DECISION_API and BUCKETING modes
Reviewed Changes
Copilot reviewed 28 out of 31 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
| lib/visitor/visitor_delegate.dart | Implements deduplication logic tracking activated variations per session |
| lib/visitor/strategy/default_strategy.dart | Refactors activation logic to handle deduplicated flags and skip network requests |
| lib/visitor.dart | Adds sessionDuration tracking and visitor lookup optimization |
| lib/model/exposed_flag.dart | Adds alreadyActivatedCampaign field to track deduplicated activations |
| lib/cache/interface_cache.dart | Adds visitorExists method to check cache without data retrieval |
| lib/cache/default_cache.dart | Implements visitorExists with database query |
| lib/Storage/database_management.dart | Adds SQL query to check visitor existence |
| lib/decision/bucketing_manager.dart | Fixes assignment history to merge instead of clearing |
| pubspec.yaml | Updates package version to 4.2.0-beta |
| test/activate_test.dart | Adds comprehensive test for deduplication feature |
| test/tracking_manager_test.dart | Tests session expiration with manipulated sessionDuration |
| example/lib/widgets/configuration.dart | Fixes Mode comparison logic and improves error logging |
| example/lib/Providers/fs_data.dart | Updates example configuration values |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
|
|
Already merged in 4.2.0-beta |



No description provided.